home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 744 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: easy.in-chemnitz.de!mkmk!floh
  2. From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Message-ID: <Z31Wx*zA0@mkmk.in-chemnitz.de>
  6. Date: Wed, 10 Jan 1996 23:47:09 CET
  7. Reply-To: floh@mkmk.in-chemnitz.de
  8. References: <4d0ou6$835@astfgl.idb.hist.no>
  9. Distribution: world
  10. Organization: private uucp site
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <4d0ou6$835@astfgl.idb.hist.no>, Lasse Staff Jensen writes:
  14.  
  15. > I have been following the discussion on fast tmapping
  16. > innerloops, and have a question conserning those 
  17. > very fast loops (i.e two instructions per pixel).
  18. 2 instructions per pixel for free texture mapping? How
  19. do you define 'instruction' ?
  20.  
  21. > What do you guys do when the delta values are negative?
  22. > Clearly an addx.l will not work! Do you use some kind of
  23.  
  24. This trick should also work with a negative adder, since the
  25. bit that once defined the adders sign is now somewhere in
  26. the middle of the longword and doesn't hurt. The real MSB
  27. is now only important for producing overflows (or underflows,
  28. just as you like it) of the fractional part. It wouldn't
  29. work that well if over/underflows of the integer part would 
  30. happen but since [u,v] have a limited range of [0..txt size]
  31. this is unlikely anyway.
  32.  
  33. > symetric tmap, or does the tmap repates outside the frame,
  34. > or what? Do you have several innerloops? 
  35.  
  36. Personally, I have 8 inner loops at the moment.
  37.  
  38. But they handle linear, perspective corrected, non-shaded, 
  39. gouraud-shaded, transparent mapping and all combinations
  40. thereof that make sense. I don't use the X-Flag trick however,
  41. and the more optimized versions live on the x86 anyway ;-/
  42.  
  43. > Any pointers, anyone? Thanks in advance..
  44. >       
  45.  
  46. Sorry, I can only serve with a (void *).
  47.  
  48. Bye,
  49. -Floh.
  50.  
  51. ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
  52. ...// Sep'95: Return Of The Living Death...................
  53. \\// 90% of everything is crap (Sturgeon's Law)...........
  54. =\\===============================================Amiga!=
  55.  
  56.